package com.sushi.service;

import com.sushi.repository.entity.PostEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sushi.response.ResponseBO;
import com.sushi.response.ResponsePageBO;
import com.sushi.response.PostResp;
import com.sushi.request.PostReq;
import com.sushi.request.PostPageReq;

/**
 * 交流帖 服务类
 * @date 2023-05-02
 * @time 17:15:45
 * @author Administrator
 */
public interface PostService extends IService<PostEntity> {

    

    /**
     * 新增
     */
    public ResponseBO<PostResp> add(PostReq req);

    /**
     * 逻辑删除
     */
    public ResponseBO<PostResp> logicRemove(PostReq req);

    /**
     * 更新
     */
    public ResponseBO<PostResp> updateByField(PostReq req);

    /**
     * 列表
     */
    public ResponsePageBO<PostResp> listByCondition(PostPageReq req);

    /**
     * 详情
     */
    public ResponseBO<PostResp> detail(PostReq req);

;

}